package com.sunwayworld.baseline.business.labelprint.resource.impl;

import com.sunwayworld.baseline.business.labelprint.resource.LimsLabelPrintResource;
import com.sunwayworld.baseline.business.labelprint.service.LimsLabelPrintService;
import com.sunwayworld.framework.restful.data.RestJsonWrapperBean;
import com.sunwayworld.framework.spring.annotation.GikamBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Lazy;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName LimsLabelPrintResourceImpl
 * @Author zhoujq
 * @Date 2023/2/10
 * @Version 1.0
 **/
@RestController
@GikamBean
public class LimsLabelPrintResourceImpl implements LimsLabelPrintResource {

    @Autowired
    @Lazy
    LimsLabelPrintService limsLabelPrintService;

    @Override
    public Long printEquipment(RestJsonWrapperBean jsonWrapperBean) {
        return limsLabelPrintService.printEquipment(jsonWrapperBean);
    }

    @Override
    public Long printMaterial(RestJsonWrapperBean jsonWrapperBean) {
        return limsLabelPrintService.printMaterial(jsonWrapperBean);
    }
}
